$OpenBSD: patch-magick_MagickCore_pc_in,v 1.4 2016/03/08 00:27:03 sthen Exp $
--- magick/MagickCore.pc.in.orig	Sun Mar  6 14:20:31 2016
+++ magick/MagickCore.pc.in	Mon Mar  7 14:22:13 2016
@@ -1,8 +1,8 @@
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 libdir=@libdir@
-includedir=@includedir@/ImageMagick-@MAGICK_MAJOR_VERSION@
-includearchdir=@INCLUDEARCH_DIR@/ImageMagick-@MAGICK_MAJOR_VERSION@
+includedir=@includedir@/ImageMagick
+includearchdir=@INCLUDEARCH_DIR@/ImageMagick
 libname=MagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@
 moduledir=@libdir@/ImageMagick-@MAGICK_MAJOR_VERSION@.@MAGICK_MINOR_VERSION@.@MAGICK_MICRO_VERSION@/modules-@MAGICK_ABI_SUFFIX@
 
@@ -11,5 +11,5 @@ Description: MagickCore - C API for ImageMagick (ABI @
 URL: https://www.imagemagick.org
 Version: @PACKAGE_VERSION@
 Cflags: -I${includearchdir} -I${includedir} @MAGICK_PCFLAGS@
-Libs: -L${libdir} -l${libname}
-Libs.private: -L${libdir} -l${libname} @MAGICK_LIBS@ @MATH_LIBS@
+Libs: -L${X11BASE}/lib -L${libdir} -l${libname}
+Libs.private: -L${X11BASE}/lib -L${libdir} -l${libname} @MAGICK_LIBS@ @MATH_LIBS@
